<%-- 
    Document   : LoginForm
    Created on : Jan 4, 2012, 7:51:18 PM
    Author     : User
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html"  prefix="html" %> 
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>CASSYS</title>
    </head>
    <body>
        <h1>Login</h1>
         <s:actionerror/>
        <s:form action="/login" focusElement="username">
            <table>
                <tr> 
                    <td>User Name:</td>
                    <td>
                        <s:textfield name="username" size="40" maxlength="40"/><s:fielderror><s:param>username</s:param></s:fielderror>
                    </td>
                </tr>
                <tr>
                    <td> &nbsp; </td>
                    <td> &nbsp; </td>
                </tr>
                <tr>
                    <td>Password:</td>
                    <td>
                        <s:password name="password" size="40" maxlength="40"/><s:fielderror><s:param>password</s:param></s:fielderror>
                    </td>
                </tr>
                <tr>
                    <td> &nbsp; </td>
                    <td> &nbsp; </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <s:submit label="Login" align="middle" />
                        &nbsp;&nbsp;&nbsp;
                        <s:reset label="Reset"  align="middle" />
                    </td>
                </tr>
                <tr>
                    <td> &nbsp; </td>
                    <td> &nbsp; </td>
                </tr>
            </table>
        </s:form>
    </body>
</html>
